cmake_minimum_required(VERSION 3.27)
project(learn_c_demo C)

set(CMAKE_C_STANDARD 99)

add_executable(array_demo basic/array/array_demo.c
        advance/file/open.c
        advance/file/readWrite.c
        advance/file/lstat.c
        advance/file/ll.c
        advance/file/dir.c
        advance/process/fork_demo.c
        advance/process/wait_demo.c
        advance/process/pipe_demo.c
        advance/process/pipe_demo1.c
        advance/process/mmap_demo.c
        advance/process/fork_mmap.c
        advance/process/struct_mmap.c
        advance/process/fork_mmap_anon.c
        advance/signal/signal.c
        advance/deamon/deamon.c
        advance/thread/thread3.c
        advance/io/select_demo.c
        advance/io/select_demo.c)
add_executable(variable_paramer basic/function/variable_paramer.c)
add_executable(string_demo basic/array/string_demo.c)
add_executable(pointerDemo basic/pointer/pointerDemo.c)
add_executable(pointerDemo01 basic/pointer/pointerDemo01.c)
add_executable(pointerDemo02 basic/pointer/pointerDemo02.c)
add_executable(structDeom basic/struct/structDeom.c)
add_executable(tydefineDemo basic/typedefine/tydefineDemo.c)
add_executable(fileDemo basic/io/fileDemo.c)
add_executable(fileDemo01 basic/io/fileDemo01.c)
add_executable(open advance/file/open.c)